import time
from selenium.webdriver.common.by import By

class Mylogin():
    def __init__(self,driver):
        self.driver=driver

    def login(self):
        self.driver.find_element(By.XPATH, '//*[@id="user-name"]').send_keys('standard_user')
        self.driver.find_element(By.XPATH, '//*[@id="password"]').send_keys('secret_sauce')
        self.driver.find_element(By.XPATH, '//*[@id="login-button"]').click()
        time.sleep(3)
